<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model common\models\MdmTask */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="mdm-task-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'input')->textarea(['maxlength' => true]) ?>

    <?= $form->field($model, 'flag')->dropDownList(\common\consts\Consts::MDM_TASK_FLAG_MAP(),
        [
//            'class' => 'form-control input-sm',
//            'prompt' => \common\consts\CommonResources::PROMPT_PLS_SELECT(),
        ]) ?>

    <?= $form->field($model, 'output')->textarea(['maxlength' => true]) ?>

    <?= $form->field($model, 'started_at')->textInput() ?>

    <?= $form->field($model, 'stopped_at')->textInput() ?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
